package cn.xy.ymcc.constants;


/**
 * 全局异常枚举类
 */
public enum YmccError {
    NO_EMPTY_EMP_NAME("4001","员工名字不能为空"),
    NO_EMPTY_EMP_EMAIL("4002","邮箱不能为空"),


    COMMON_INFORMATION_NO_EMPTY("4101","信息不能为空"),
    COMMON_SERIOUS("4102","开门送温暖"),
    COMMON_PHONE_ILLEGAL("4103","手机号不合法"),

    USER_SMS_EMPTY("4201","短信验证码失效"),
    USER_SMSCODE_NOTEQUALS("4202","验证码输入错误"),
    USER_EXISTS("4203","用户已存在，请直街登录");

    /**
     * 错误码
     */
    private String code;
    /**
     * 错误描述
     *
     */
    private String message;

    YmccError(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode(){
        return code;
    }
    public String getMessage(){
        return message;
    }
}
